// Filename: views/projects/list
define([
  'jquery',
  'underscore',
  'backbone',
  // Pull in the Collection module from above,
  'models/admin/UnattendedModel',
  'collections/admin/UnattendedCollection',
  'text!templates/admin/unattendedListTemplate.html'

], function($, _, Backbone, UnattendedModel, UnattendedCollection, unattendedListTemplate){
  var UnattendedListView = Backbone.View.extend({
    el: $("#unattendedappointments"),

    render: function(){
    	console.log(this.collection.models);
      var data = {
        appointments: this.collection.models,
        _: _ 
      };

      var compiledTemplate = _.template( unattendedListTemplate, data );
      $("#unattendedappointments").html( compiledTemplate ); 
    }
  });
  return UnattendedListView;
});
